package com.koron.common.core.business.system.tree;

import com.koron.bean.annocation.FillField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName SuperTree
 * @description
 * @Author zhouj
 * @Date 2021/6/3 15:59
 */
@Data
public class SuperTree<T extends SuperTree> {

    @FillField
    @ApiModelProperty("id")
    protected String id;

    @ApiModelProperty("父id")
    protected String parentid;

    @ApiModelProperty("排序")
    protected Integer order;

    @ApiModelProperty("子级列表")
    protected List<T> children = new ArrayList<>();

}
